#include "EWAUIFrame.hpp"

namespace Eyer
{
    int EWAUIFrame::OnDraw()
    {
        RemoveAllUIGraph();
        EyerSmartPtr<EWAUIGraphRect> rect(new EWAUIGraphRect());
        rect->xy.SetX(0);
        rect->xy.SetY(0);
        rect->wh = wh;
        rect->background = bgColor;
        rect->rounding = rounding;
        AddUIGraph(rect);

        return 0;
    }

    EWAUIFrame::EWAUIFrame(EWAUILayoutParams width, EWAUILayoutParams height)
        : EWAUIWidget(width, height)
    {
        SetWidgetName("EWAUIFrame");
    }
}